package cn.lovingliu.chanma.util;

import java.util.Date;
public class DateUtil {
    public static long getSecondTimestamp(Date date){
        if (null == date) {
            return 0;
        }
        String timestamp = String.valueOf(date.getTime()/1000);
        return Long.valueOf(timestamp);
    }

}
